import request from '@/utils/request'

// 查询工艺路线列表
export function listProcess_route(query) {
  return request({
    url: '/mes/process_route/list',
    method: 'get',
    params: query
  })
}

// 查询工艺路线详细
export function getProcess_route(id) {
  return request({
    url: '/mes/process_route/' + id,
    method: 'get'
  })
}

// 新增工艺路线
export function addProcess_route(data) {
  return request({
    url: '/mes/process_route',
    method: 'post',
    data: data
  })
}

// 修改工艺路线
export function updateProcess_route(data) {
  return request({
    url: '/mes/process_route',
    method: 'put',
    data: data
  })
}

// 删除工艺路线
export function delProcess_route(id) {
  return request({
    url: '/mes/process_route/' + id,
    method: 'delete'
  })
}

// 导出工艺路线
export function exportProcess_route(query) {
  return request({
    url: '/mes/process_route/export',
    method: 'get',
    params: query
  })
}